This is the programming code for case study one. The code includes the experiments for both SHAP and LIME explaining tabular data processing problems based on four machine learning methods. The four methods are (a) Random Forest, (b) Logistic Regression, (c) XGBoost, and (d) K-nearest neighbours (KNN).

LIME

Random forest

Logistic Regression

XGBoost

KNN

SHAP

Random Forest

Logistic Regression

XGBoost

KNN